home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Workspace / Locus / Source / ActivatorBarView.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  57 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.
  4.  
  5.     You are free to use all or any parts of the Locus project
  6.     however you wish, just give credit where credit is due.
  7.     The author (Jeremy Slade) shall not be held responsible
  8.     for any damages that result out of use or misuse of any
  9.     part of this project.
  10.  
  11. */
  12.  
  13. /*
  14.     Project: Locus
  15.     
  16.     Class: ActivatorBarView.h
  17.     
  18.     Description:
  19.     
  20.     The ActivatorBarView is installed as the contentView in each ActivatorBar.  It is responsible for drawing the view, and for handling mouseDown:'s that occur within the view/window.  When a mouseDown: is received, the view tells the window -- an ActivatorBar -- that the view/window was hit via the barHit: message.  It would be just as easy to have the window trap these events directly in sendEvent:, but it works this way, too.
  21.     
  22.     Original Author: Jeremy Slade
  23.     
  24.     Revision History:
  25.         Created
  26.             V.101    JGS Tue Feb  2 18:47:52 GMT-0700 1993
  27.  
  28. */
  29.  
  30.  
  31. #ifndef ActivatorBarView_h
  32. #define ActivatorBarView_h
  33.  
  34. #define ActivatorBarView_VERSION    (101)
  35.  
  36.  
  37. #import <appkit/View.h>
  38.  
  39.  
  40. @interface ActivatorBarView : View
  41. {
  42.     NXColor fillColor;
  43.     NXColor borderColor;
  44. }
  45.  
  46. + initialize;
  47. - initFrame:(const NXRect *)rect;
  48. - setColor:(NXColor)color;
  49. - setBorderColor:(NXColor)color;
  50. - drawSelf:(const NXRect *)rects :(int)rectCount;
  51. - mouseDown:(NXEvent *)event;
  52.  
  53. @end
  54.  
  55.  
  56. #endif // ActivatorBarView_h
  57.